package com.etc.traval.biz;

import java.util.List;

import com.etc.travel.entity.Order;
import com.etc.travel.entity.Seller;
import com.etc.travel.entity.User;

public interface OrderBiz {
	//通过订单id查找订单
	public Order queryById(int id);
	//添加订单
	public boolean addOrder(Order order);
	//通过订单id删除订单
	public boolean delOrder(int id);
	//返回用户订单
	public List<Order> queryByUser(User user);
	//通过状态查找用户订单
	public List<Order> queryUserSta(User user,String Sta);
	//修改订单
	public boolean changeOrder(Order order);
	//分页显示用户订单
	public List<Order> queryOrderByPage(User user,int size,int page);
	//分页显示用户订单并按照状态
	public List<Order> queryUserStaPage(User user,String Sta,int size,int page);

	//根据商家查找订单
	public List<Order> queryOrderBySeller(Seller seller);
	
	//根据Id修改订单状态
	public boolean updateStateById(String state, int id);
}
